from ui.test_gui_base import Ui_MainWindowBase, test_gui_base

class UiFactory: #
    @staticmethod
    def create(class_type, **kwargs):
        if class_type == "main":
            return Ui_MainWindowBase(kwargs.get('engine', None)) # 外部通过信号-槽函数与UI模块通讯
            # return test_gui_base
        else:
            raise ValueError("Invalid transport type")